package com.erbao.dp.proxy.springaop.v2;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author CaoBaoYin
 * @since 21/9/17 17:48
 */
@Aspect
public class TimeProxy {

    @Before("execution(void com.erbao.dp.proxy.springaop.v2.Tank.move())")
    public void before(){
        System.out.println("start(annotation)..."+System.currentTimeMillis());
    }

    @After("execution(void com.erbao.dp.proxy.springaop.v2.Tank.move())")
    public void after(){
        System.out.println("end(annotation)..."+System.currentTimeMillis());
    }

}
